package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.ElderlyFamilyRelation;
import com.zzyl.nursing.dto.HealthDataDto;
import com.zzyl.nursing.dto.HealthDayDto;
import com.zzyl.nursing.dto.MemberDto;
import com.zzyl.nursing.vo.ElderFamilyMyVo;
import com.zzyl.nursing.vo.ElderlyFamilyRelationVo;
import com.zzyl.nursing.vo.HealthDataVo;
import com.zzyl.nursing.vo.HealthDayVo;

import java.util.List;

/**
 * 小程序端用户接口类
 *
 * @Author myl
 * @Date 2025/8/4 21:16
 */
public interface MemUserService extends IService<ElderlyFamilyRelation> {
    /**
     * 绑定家人
     */
    void add(MemberDto dto);

    /**
     * 查询家人列表
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<ElderlyFamilyRelationVo> listPage(Integer pageNum, Integer pageSize);

    /**
     * 查看家人列表
     * @return
     */
    List<ElderFamilyMyVo> listAll();

    /**
     * 查看健康数据
     * @return
     */
    HealthDataVo QueryDevicePropertyStatus(HealthDataDto dto);



    /**
     * 按天统计查询指标数据
     * @param
     * @return
     */
    List<HealthDayVo> queryDeviceDataListByDay(String functionId, Long startTime, Long endTime, String iotId);

    /**
     * 按周查询指标数据
     * @param dto
     * @return
     */
    List<HealthDayVo> queryDeviceDataListByWeek(HealthDayDto dto);

    /**
     * 解绑
     * @param
     */
    void deleteById(Long id);
}
